@import '../../assets/css/theme.less';
.chatBox {
  width: 100%;
  height: 100%;
  // background: #fff;
  border-radius: 0 10px 10px 0;
  // border: 1px solid #e1e1e1;
  background-image: url('../../assets/images/loading.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 150px 150px;
  
  display: flex;
  .toolsBar {
    width: 60px;
    display: none;
    float: left;
    flex-direction: column;
    align-items: center;
    padding: 80px 1px 1px;
    height: 100%;
    background: #e6e6e6;
    position: relative;
    .list_switch {
      -webkit-app-region: no-drag;
      font-family: 微软雅黑;
      width: 40px;
      height: 40px;
      flex-basis: 40px;
      font-size: 10px;
      margin: 15px 0;
      text-align: center;
      cursor: pointer;
      color: #9ca0aa;
      &.active {
        color: #515a6e;
      }
      i {
        width: 30px;
        height: 30px;
        margin: 5px;
        display: block;
        background: red;
        text-align: center;
        line-height: 30px;
        border-radius: 50%;
        font-size: 16px;
        color: #fff;
      }
      &:nth-child(1) i {
        background: #fcac1a;
        line-height: 32px;
      }
      &:nth-child(2) i {
        background: #0f85ff;
        line-height: 30px;
        &::before {
          position: relative;
          left: 0px;
        }
      }
      &:nth-child(3) i {
        background: #6193f0;
      }
    }
    .logo {
      position: absolute;
      -webkit-app-region: no-drag;
      width: 30px;
      height: 30px;
      top: 0px;
      margin: 15px;
      left: 0;
      cursor: pointer;
      border-radius: 50%;
      img {
        width: 100%;
        height: 100%;
      }
      &:hover {
        box-shadow: 0 0 5px #666;
      }
    }
    .setting {
      position: absolute;
      width: 20px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      -webkit-app-region: no-drag;
      bottom: 25px;
      left: 25px;
      font-size: 0px;
      border-radius: 50%;
      cursor: pointer;
      i {
        font-size: 20px;
        color: #757575;
      }
      &:hover {
        background: #eee;
      }
    }
    .tongji {
      width: 60px;
      text-align: center;
      -webkit-app-region: no-drag;
      position: absolute;
      bottom: 80px;
      left: 0;
      .item {
        padding: 10px 0 0px;
        font-size: 12px;
        border-bottom: 1px solid #c5c5c5;
        b {
          font-size: 14px;
          display: inline-block;
          width: 100%;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        &:nth-child(1) {
          border-top: 1px solid #c5c5c5;
        }
      }
    }
  }
  .listBox {
    border-right: 1px solid #dcdee2;
    flex-grow: 22.6;
    height: 100%;
    width:0;
    min-width: 100px;
    max-width: 220px;
    .list {
      width: 100%;
      height: calc(100% - 50px);
      -webkit-app-region: no-drag;
    }
  }
  .msgBox {
    height: 100%;
    flex-grow: 80;
    width:0;
    background: #ededed;
    position: relative;
    border-radius: 0 10px 10px 0;
    .nomsg {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      font-size: 40px;
      justify-content: center;
      color: #999;
      font-family: '楷体';
      i {
        font-size: 40px;
        font-weight: 600;
      }
    }
  }
}

.settingbox {
  .ivu-modal {
    width: 500px !important;
    top: 50%;
    margin-top: -202px;
  }
  .ivu-modal-header {
    padding: 2px 0px 20px 10px;
    background:@theme_color;
    border-radius: 5px 5px 0 0;
    height: 50px;
    p {
      width:100%;
      line-height: 46px;
      height:50px;
      color: #fff;
      font-size: 18px;
      font-weight: 400;
    }
  }
  .ivu-modal-close {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
    font-size: 0;
    -webkit-app-region: no-drag;
    .ivu-icon {
      font-size: 40px;
      line-height: 30px;
      color:#fff;
      text-align: center;
      display: inline-block;
      width: 30px;
    }
  }
  .ivu-modal-footer {
    display: none;
  }
  .ivu-modal-body {
    height: 380px;
    padding: 0;
    .settingcont {
      width: 100%;
      height: 100%;
      padding: 0px;
      overflow: hidden;
      .left {
        width: 100px;
        height: 100%;
        border-right: 1px solid #dcdee2;
        background:#e6e6e6;
        border-radius: 0 0 0 8px;
        float: left;
        .item {
          padding: 10px 5px;
          text-align: center;
          cursor: pointer;
          font-size: 14px;
          font-weight: 600;
          &.active {
            background:#fff;
          }
        }
      }
      .right {
        width: calc(100% - 100px);
        height: 100%;
        padding:5px 0 5px 5px;
        float: left;
        .item{
          width:100%;height:100%;overflow: hidden;overflow-y: auto;display: none;
          &.active{
            display: block;
          }
          &.reply_msg{
            padding-right: 5px;
            textarea{
              width:100%;border-radius: 5px;resize: none;height:110px;outline: none;
              padding:5px;margin-bottom: 5px;
            }
            .timeoutbox{
              border:1px solid #e0e0e0;border-radius:10px;
              padding:5px;position: relative;padding-top: 15px;margin-top: 15px;
              .tit{
                position: absolute;display: inline-block;top:-8px;left:15px;background:#fff;
                padding:0 2px;font-size: 10px;user-select: none;
              }
            }
            .settimeout{
              width:100%; display: flex; flex-direction: row;
              .timeout{
                width:300px;margin-top: -3px;height:24px;
              }
              .isinure{
                height:24px;
              }
              .ivu-input-wrapper{
                width:100px;display: inline-block;
              }
              .ivu-input{
                width:100px;display: inline-block;
              }
            }
            .showimg{
              width:100px;height:100px;border:1px solid #848386;border-radius: 4px;cursor: pointer;margin-bottom: 10px;
              .noimg{
                width:100%;height:100%;display: flex; justify-content: center; align-items: center;cursor: pointer;
                background:#ddd;border-radius: 4px;
                i{
                  font-size: 40px;
                }
              }
              img{
                width:100%;height:100%;border-radius: 4px;cursor: pointer;
              }
            }
            .save{
              width:100px;height:30px;margin:15px auto;text-align: center;background:#4282ef;color:#fff;
              line-height: 30px;cursor: pointer;margin-bottom: 0;
              &:active{
                opacity: 0.8;
              }
            }
          }
          &.config{
            padding: 10px;
            .group_item{
              line-height: 22px;
              .items{
                margin:2px 0;
                &.selectmp3{
                  padding:0 5px;
                  &.del{
                    position: relative;opacity: 0.3;
                    &::before{
                      width:100%;height:1px;background:#666;top:50%;
                      content: '';left:0;display: block;position: absolute;
                    }
                  }
                  input{
                    height:20px;outline: none;padding:0 5px;
                  }
                  a{
                    margin-right: 10px;
                    i{
                      position: relative;top:-1px;
                    }
                  }
                  span{
                    font-size: 12px;color:#999;
                  }
                }
              }
            }
          }
          &.aboutus{
            text-align: center;user-select: none;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            .logo{
              width:100px;height:100px;margin-bottom: 5px;
              background:@theme_color;color:#fff;line-height: 100px;text-align: center;
              border-radius: 50%;
              i{
                font-size: 70px;
              }
            }
            .info{
              .showversion{
                cursor: pointer;
                position: relative;
                &[news="1"]::after{
                  content: 'new';
                  position: absolute;
                  top:-8px;right:-30px;
                  display: inline-block;background:red;color:#fff;
                  border-radius: 15px;padding:0 5px;font-size: 10px;
                }
              }
            }
          }
        }
      }
    }
  }
}